//
//  NewsViewController.m
//  BaseProject
//
//  Created by ctrl on 2019/8/8.
//  Copyright © 2019 qingzhou. All rights reserved.
//

#import "NewsViewController.h"

@interface NewsViewController ()

@end

@implementation NewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"pageControl";
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self setNavigationBar];
}

- (void)setNavigationBar {
    UIColor *navColor = [UIColor clearColor];
    [self.navigationController.navigationBar setBackgroundImage:[[UIColor createImageWithColor:navColor] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forBarMetrics:UIBarMetricsDefault];
    ////    // 去掉d透明后导航栏下面的黑边
    self.navigationController.navigationBar.shadowImage = [UIImage new];
    self.navigationController.navigationBar.translucent = YES;
    self.navigationController.navigationBar.barTintColor = [UIColor clearColor];
    //设置导航栏title的字体及颜色i
    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName, [UIFont systemFontOfSize:18],NSFontAttributeName , nil]];
}

@end
